define(
	[
		'require'
	],
	function (require) {
		"use strict";

		var Component = Ember.Select.extend(Ember.TargetActionSupport, {
			content: Ember.A([
				{
					name: "前1分钟",
					value: "1m"
				},
				{
					name: "前1小时",
					value: "1h"
				},
				{
					name: "前1天",
					value: "1d"
				},
				{
					name: "前1周",
					value: "7d"
				},
				{
					name: "前1个月",
					value: "1M"
				}
			]),

			optionLabelPath: "content.name",

			optionValuePath: "content.value",

			targetObject: Ember.computed(function(key) {
				var parentView = this._parentView;
				return parentView ? Ember.get(parentView, 'controller') : null;
			}).property('_parentView')
		});

		return Component;
	}
);